#delimit; 
clear all;
set more off;

capture log close;

log using log/wbact_2021.log, replace;
 
import delimited
tucaseid
tuactivity_n
wufnactwt
wuhapord
wuhappy
wuinteract
wumeaning
wupain
wupnord
wusad
wusadord
wustress
wustrord
wutired
wutrdord
 using c:\atus\wb21\wbact-2021\wbact_2021.dat, stringcols(1) ;

label variable tucaseid "ATUS Case ID (14-digit identifier)";
label variable tuactivity_n "Activity line number";
label variable wufnactwt "Well-being module original activity weight";
label variable wuhapord "Order of WUHAPPY";
label variable wuhappy "From 0 to 6, where a 0 means you were not happy at all and a 6 means you were very happy, how happy did you feel during this time?";
label variable wuinteract "Were you interacting with anyone during this time, including over the phone?";
label variable wumeaning "From 0 to 6, how meaningful did you consider what you were doing?";
label variable wupain "From 0 to 6, where a 0 means you did not feel any pain at all and a 6 means you were in severe pain, how much pain did you feel during this time if any?";
label variable wupnord "Order of WUPAIN";
label variable wusad "From 0 to 6, where a 0 means you were not sad at all and a 6 means you were very sad, how sad did you feel during this time?";
label variable wusadord "Order of WUSAD";
label variable wustress "From 0 to 6, where a 0 means you were not stressed at all and a 6 means you were very stressed, how stressed did you feel during this time?";
label variable wustrord "Order of WUSTRESS";
label variable wutired "From 0 to 6, where a 0 means you were not tired at all and a 6 means you were very tired, how tired did you feel during this time?";
label variable wutrdord "Order of WUTIRED";

su;

sort tucaseid tuactivity_n;

save work/wbact_2021.dta, replace;

log close;